package com.maben.mqtt.constant;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
@Data
public class YmlConstant {

    /** *********生产端配置项********* */
    @Value("${mqtt.provider.username}")
    private String providerUsername;
    @Value("${mqtt.provider.password}")
    private String providerPassword;
    @Value("${mqtt.provider.url}")
    private String providerHostUrl;
    @Value("${mqtt.provider.cleanSession}")
    private Boolean providerCleanSession;
    @Value("${mqtt.provider.connectTimeout}")
    private Integer providerConnectTimeout;
    @Value("${mqtt.provider.keepAliveInterval}")
    private Integer providerKeepAliveInterval;
    @Value("${mqtt.provider.clientId}")
    private String providerClientId;
    @Value("${mqtt.provider.defaultTopic}")
    private String providerDefaultTopic;
    @Value("${mqtt.provider.retained}")
    private Boolean providerRetained;


    /** *********消费端端配置项********* */
    @Value("${mqtt.consumer.username}")
    private String consumerUsername;
    @Value("${mqtt.consumer.password}")
    private String consumerPassword;
    @Value("${mqtt.consumer.url}")
    private String consumerHostUrl;
    @Value("${mqtt.consumer.cleanSession}")
    private Boolean consumerCleanSession;
    @Value("${mqtt.consumer.connectTimeout}")
    private Integer consumerConnectTimeout;
    @Value("${mqtt.consumer.keepAliveInterval}")
    private Integer consumerKeepAliveInterval;
    @Value("${mqtt.consumer.clientId}")
    private String consumerClientId;
    @Value("${mqtt.consumer.defaultTopic}")
    private String consumerDefaultTopic;
    @Value("${mqtt.consumer.retained}")
    private Boolean consumerRetained;


}
